<?php  echo CHtml::hiddenField('buidRuleIsNew',CHtml::value($model, 'buildRule.id',0),array('id'=>'isNew'));?>
<table class='detail mgb10'>
	<tr>
		<th class="vtop" width='100px'><?php echo $form->labelEx($model, 'buildRule.start_time')?>：</th>
		<td><?php $this->widget('lib.widgets.my97date.CMy97DatePicker', array(
 			'model' => $model,
 			'attribute' => 'buildRule.start_time',
			'htmlOptions' => array('id'=>'start_time')
		));?><?php echo $form->error($model, 'buildRule.start_time')?></td>
	</tr>
	<tr>
		<th class="vtop"><?php echo $form->labelEx($model, 'buildRule.end_type')?>：</th>
		<td><?php echo $form->dropDownList($model, 'buildRule.end_type', Yii::app()->enum->options('goods.TravelEndType'), array(
			'id' => 'end_type',
		))?><?php $this->widget('lib.widgets.my97date.CMy97DatePicker', array(
 			'model' => $model,
 			'attribute' => 'buildRule.end_time',
			'htmlOptions' => array('id'=>'end_time')
		));?><?php echo $form->error($model, 'buildRule.end_type')?></td>
	</tr>
	<tr>
		<th class="vtop"><?php echo $form->labelEx($model, 'buildRule.build_type')?>：</th>
		<td><?php echo $form->dropDownList($model, 'buildRule.build_type', Yii::app()->enum->options('goods.travelBuildType'), array(
			'id' => 'build_type',
		))?><?php echo $form->error($model, 'buildRule.build_type')?></td>
	</tr>
	<tr id='ByWeek' class='build-type'>
		<th class="vtop">规则：</th>
		<td><?php echo $form->checkBoxList($model, 'buildRule.by_week', Yii::app()->enum->options('goods.travelBuildByWeek',false), array(
			'separator' => '',
		))?><?php echo $form->error($model, 'buildRule.by_week')?></td>
	</tr>
	<tr id='ByDay' class='build-type'>
		<th class="vtop">规则：</th>
		<td>每隔 <?php echo $form->textField($model, 'buildRule.by_day',array('size'=>1))?>天<?php echo $form->error($model, 'buildRule.by_day')?></td>
	</tr>
	<tr id='ByDate' class='build-type'>
		<th class="vtop">规则：</th>
		<td><?php $this->widget('coms.ui.ChooseTime',array(
			'model' => $model,
			'attribute' => 'buildRule.by_date',
		));?><?php echo $form->error($model, 'buildRule.by_date')?></td>
	</tr>
</table>
